<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'logout-form',
	'enableClientValidation'=>false,
	'action'=>'appcamel/index.php?r=ajax/logout',
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>
<div class="row buttons">
		<?php
echo "You login as: <span>".Yii::app()->user->name."</span>";
	echo CHtml::Button('Quit',array(
	'onclick'=>"$('#login').load('appcamel/index.php?r=ajax/logout')",'class'=>'logout_button',
    /* 'type' => 'GET',
    'update' => '#login_alert',
	'complete'=>'js:function(){
            login_check();
        }', */
),
array(
   'id' => 'logout'
));
?>
</div>

<?php $this->endWidget(); ?>
</div><!-- form -->



